/*
 * @Description:
 * @author:
 * @since: yyyy-MM-dd
 * @page: xxxx.vue
 */

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import '@/styles/global.scss' // 全局样式,引入后html，body的才生效
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue' //引入图标
import Avue from '@smallwei/avue' //avue
import '@smallwei/avue/lib/index.css'

// 3D轮播
import Carousel3d from 'vue3-carousel-3d'
import 'vue3-carousel-3d/dist/index.css'

const app = createApp(App)
// 引入组件，并国际化
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(createPinia())
app.use(router)
app.use(Avue)
app.use(Carousel3d)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')
